Skip to content

feat(docs): list the pages a pin move reaches, and review them in the same PR - #25786

Open
alejoamiras wants to merge 3 commits into
nextfrom
worktree-docs-doc-references
Open

alejoamiras wants to merge 3 commits into
nextfrom
worktree-docs-doc-references

Conversation

@alejoamiras

Copy link
Copy Markdown
Contributor

Docs pages list the aztec-node source files they describe, but nothing told us when those files changed, since aztec-node's PRs don't run our CI. Now, when a PR moves a docs line's aztec-node pin, a script lists the referenced files that changed between the old and new pin and the pages that describe them, and the release skills and pin instructions have the agent moving the pin review those pages in the same PR. Moving the pin also checks the getting-started page's Node.js minimum.

docs/scripts/pin_doc_references.sh [--line <line>] [<old-commit>] prints
`<reference> -> <pages>` for each labs/ reference whose files differ between
the line's old and new aztec-node pin. The old commit defaults to the line's
pin at the merge base with origin/next. The script fetches it into the line's
checkout at depth 1 only when it is missing, and diffs with --no-renames, so a
renamed or deleted referenced file is listed too.

extract_doc_references.sh gains changed_references, the one matcher (exact
file, or a directory prefix ending at a slash). It loses
get_unique_references, find_docs_for_reference and build_change_mappings:
nothing in the repository calls them (searched every tracked file, including
.claude/skills, docs/README.md and the v6 line), and build_change_mappings
matched by substring. extract_references_mapping now truncates its output
with `: >`: a bare redirection runs `cat` under zsh and blocks on an open
stdin.
docs/CLAUDE.md's pin section now tells the agent moving a pin to run
scripts/pin_doc_references.sh for each line whose pin moved, update the
listed pages with the update-doc-references skill, and check the Node.js
minimum the new version installs against node_ver on that line's
local-network getting-started page.

update-doc-references takes the script's list for a pin move (Step 2), maps a
PR with the shared changed_references matcher (Step 3), and keeps a pin
move's edits on its own branch and PR (Step 6).

release-docs Step 12 and release-network-docs Step 7a list the pages from the
destination's pin to the tag and check each one's snapshot copy, since a cut
fixes snapshots, never sources. docs/README.md describes the script.
git diff --name-only C-quotes a path holding `"` or `\` even with core.quotePath=false, so its labs/ form matched no reference and the page was silently left out. Read the names NUL-separated instead. The usage text now reads the script by its directory, so it prints from any working directory.
@alejoamiras
alejoamiras requested a review from a team as a code owner November 6, 2026 20:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant